/**
 * Copyright &copy; com.nmf All rights reserved.
 */
package com.nmf.site.biz.ipn.gen.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.nmf.site.common.persistence.DataEntity;

/**
 * IPN信息Entity
 * @author 北冥
 * @version 2018-04-06
 */
public class BizFunIpn extends DataEntity<BizFunIpn> {
	
	private static final long serialVersionUID = 1L;
	private Integer payStatus;		// 支付状态
	private String orderNo;		// order_no
	private String thridTradeNo;		// 第三方交易号
	private Double amount;		// 金额
	private String ipnContent;		// 回调原始内容
	private Integer payType;		// 支付方式
	private Date createTime;		// create_time
	private Date updateTime;		// update_time
	
	public BizFunIpn() {
		super();
	}

	public BizFunIpn(String id){
		super(id);
	}

	public Integer getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}
	
	@Length(min=0, max=60, message="order_no长度必须介于 0 和 60 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=255, message="第三方交易号长度必须介于 0 和 255 之间")
	public String getThridTradeNo() {
		return thridTradeNo;
	}

	public void setThridTradeNo(String thridTradeNo) {
		this.thridTradeNo = thridTradeNo;
	}
	
	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}
	
	public String getIpnContent() {
		return ipnContent;
	}

	public void setIpnContent(String ipnContent) {
		this.ipnContent = ipnContent;
	}
	
	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}